﻿using sdkrtv2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Data.Json;

namespace XiaoweiVoiceAI.Model
{
    public class WeChatReadSendMore : ISendMore
    {
        public int SendMoreResourceCmd(string skillId, string skillName, string playId, bool isUp, ClassDeviceSDK sdk, VOICE_ID_CS voice_id)
        {
            JsonObject joOject = new JsonObject();
            joOject.SetNamedValue("res_id", JsonValue.CreateStringValue(playId));
            joOject.SetNamedValue("is_up", JsonValue.CreateBooleanValue(isUp));
           // Log.WriteLine($"GetMoreResources, json:{joOject}");
            return sdk._xiaowei_request_cmd(voice_id, cmd: "8dab4796-fa37-4114-0051-7637fa2b0001", sub_cmd: "1010200", param: joOject.ToString());
        }
        private static WeChatReadSendMore _instance = null;
        public static WeChatReadSendMore GetInstance()
        {
            if (_instance == null)
            {
                _instance = new WeChatReadSendMore();
            }
            return _instance;
        }

    }
}
